{include file="admin/includes/header.tpl"}

<h1>TABLES</h1>

<p>{icon id='add'}<a href="table_add.php">Add a New Table</a></p>

<table id="tables">
  <thead>
    <tr>
      <th>Table Name</th>
      <th>Rows</th>
      <th>Update Time</th>
      <th>Create Time</th>
      <th>Comments</th>
      <th colspan="2" width="140">Actions</th>
    </tr>
  </thead>
  
  <tbody>
    {foreach from=$tables item=table key=k}{if ($k % 2)==1}{assign var='class' value=" class=\"ALT\""}{else}{assign var='class' value=""}{/if}
    <tr{$class}>
      <td>{$table->Name}</td>
      <td>{$table->Rows}</td>
      <td>{$table->Update_time}</td>
      <td>{$table->Create_time}</td>
      <td>{$table->Comment}</td>
      <td>{icon id='pencil'}<a href="table_edit.php?table={$table->Name}">Edit</a></td>
      <td>{icon id='delete'}<a href="table_remove.php?table={$table->Name}">Remove</a></td>
    </tr>
    {/foreach}
  </tbody>
  
  <tfoot><tr><td colspan="7">&nbsp;</td></tr></tfoot>
</table>


{include file="admin/includes/footer.tpl"}